package string;
//替换
public class ReplaceAllDemo {
    public static void main(String[] args) {
        String line="klcnsdods123vmskedlv3ifhgf3454fwieo";
        line=line.replaceAll("[0-9]+","ABCD");
        System.out.println(line);
       line=line.replaceAll("[a-z]+","ABCABC");
        System.out.println(line);
    }
}
